CC = gcc
CFLAGS  = -c -g -Wall
RM = rm -f
CP = cp
MKDIR = mkdir -p
OBJ = ../obj

all: server client

server: data io.c mm_server.c
	$(CC) mm_server.c -o $(OBJ)/mm_server

data: califications.dat
	$(CP) $< $(OBJ)/$<

client: mm_client.c
	$(CC) mm_client.c -o $(OBJ)/mm_client

clean: $(OBJ)
	$(RM) $(OBJ)/*

$(OBJ):
	$(MKDIR) $@
